<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>跑客接单统计</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Dataanalysis/dispatch_rob_orders')}">
        跑客姓名：<input type="text" name="formget[dispatch_name]" style="width: 100px;" value="{$formget.dispatch_name}" placeholder="请输入关键字...">
        跑客电话：<input type="text" name="formget[mobile]" style="width: 100px;" value="{$formget.mobile1}" placeholder="请输入关键字...">
        所属团队：
        <select class="select_2" name="formget[company_id]"  style="width: 105px;" >
            <volist name="company_data" id="vo">
                <if condition="$formget.company_id == $vo[company_id]">
                    <option value="{$vo.company_id}" selected>{$vo.company_name}</option>
                    <else /><option value="{$vo.company_id}" >{$vo.company_name}</option>
                </if>
            </volist>
        </select>
        下单时间：
        <input type="text" name="formget[start_time]" class="js-date" value="{$formget.start_time|default=''}" style="width: 90px;" autocomplete="off">-
        <input type="text" class="js-date" name="formget[end_time]" value="{$formget.end_time}" style="width: 90px;" autocomplete="off"> &nbsp; &nbsp;
        <input type="submit" class="btn btn-primary" value="搜索" />
    </form>
    总数：{$total_count}人&nbsp;&nbsp;&nbsp;&nbsp;总单量：{$total_order}单&nbsp;&nbsp;&nbsp;&nbsp;总金额：{$total_amount}元
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>所属团队</th>
                <th>跑客姓名</th>
                <th>跑客电话</th>
                <th>接单量</th>
                <th>订单总金额</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="lists" item="vo" key="k">
                <tr>
                    <td align="center">{$k+1}</td>
                    <td>{$vo[company_id]|getCompanyName}</td>
                    <td>{$vo.dispatch_name}</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.order_count}</td>
                   <td>{$vo[order_amount]}</td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($lists)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>

</body>
</html>